package com.polylink;

import java.util.List;

/**
 *@author xiliang.xiao
 *@date 2015年3月26日 上午9:53:06
 *
 **/
public class Bean {

	private List<Attr> attrs ;
	private String name;
	private String cName;
	private String upName;
	private String table;
	
	public Bean() {
		super();
	}
	public Bean(List<Attr> attrs, String name, String cName, String table) {
		super();
		this.attrs = attrs;
		this.name = name;
		this.cName = cName;
		this.table = table;
		this.upName = name.replaceFirst(name.substring(0, 1), name.substring(0, 1).toUpperCase());
	}
	public List<Attr> getAttrs() {
		return attrs;
	}
	public void setAttrs(List<Attr> attrs) {
		this.attrs = attrs;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
		setUpName(name.replaceFirst(name.substring(0, 1), name.substring(0, 1).toUpperCase()));
	}
	public String getcName() {
		return cName;
	}
	public void setcName(String cName) {
		this.cName = cName;
	}
	public String getUpName() {
		return upName;
	}
	public void setUpName(String upName) {
		this.upName = upName;
	}
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	
	
}
